package com.rockcent.mall.lib.repository;

import com.rockcent.mall.lib.domain.ProductStatistics;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by DK on 16/10/25.
 */
@Repository
public interface MerchantProductStatisticsRepositoryCustom {
    /**
     * 取访问量前10的
     */
    List<ProductStatistics> getTop10(Integer size,Long mallId);

    /**
     * 获取指定商铺销量前20的商品ID
     */
    List<ProductStatistics> getTopSale20(Long merchantId,Long mallId);

    List<ProductStatistics> findByProductIdInCustom(List<Long> productIds,String orderBy);
}
